<?php
    
    //settings directory
    define("SYSTEM_DIR", realpath( dirname(__FILE__).'/..') );
     
    //modules - libs directory
    define("MODULE_DIR", SYSTEM_DIR.'/modules'); 
	    
    //settings directory
    define("CONFIG_DIR",SYSTEM_DIR.'/etc');
			    
    //theme directory
    define("THEME_DIR",SYSTEM_DIR.'/theme');
    
    //log dir
    define("LOG_DIR",SYSTEM_DIR.'/var/log');
    
    //cache dir
    define("CACHE_DIR",SYSTEM_DIR.'/var/cache');
    
    //cache tpl
    define("CACHE_TPL",SYSTEM_DIR.'/var/tpl');
    
    //upload dir & url
    define("UPLOAD_DIR",SYSTEM_DIR.'/var/upload');
    define("UPLOAD_URL",'/var/upload');
    
    //session dir
    define("SESSION_DIR",SYSTEM_DIR.'/var/session');

	//system temp dir
	define("SYS_TMP","php://temp");
	 
    //max GET request length
    define("GET_MAX_LEN",1024);
    
    //max POST request
    define("POST_MAX_LEN",1024);
    
    //reduce traffic - pages are gzipped
    define("GZIP_LEVEL",9);
    
    //timezone    
    define("TIMEZONE","Europe/Warsaw");
    
    //default expiration time for cookies
    // + => time in the future
    define("COOKIE_TTL",4*60*60);

    //cookie string max length
    define("COOKIE_MAX_LEN",512);

    //default session time
    define("SESSION_TTL",4*60*60);
    
    //define session id name in cookie
    define("SID","gorillasid");

    //session bot tracking
    //should be ..._ FOR_BOT, I don't care 
    define("CHECK_FOR_BOOT",true);
    
    //session security model
    //type 0 - basic sid checking, ommiting agent & ip check
    //type 1 - if user agent are not equal with dbms - creating new session
    //type 2 - if user agent, ip, hostname not equal with dbms - creating new session
    define("SESSION_MODEL",0);
    
    //max url length which will be processed - http://{url}/
    define("MAX_URL_LEN",1024);
    
    //maxurl  query length - http://{url}/{query}
    define("MAX_QUERY_LEN",1024);
    
    //max length of user agent string
    define("USER_AGENT_MAX",255);
    
    //max length of referrer
    define("REFERRER_MAX",600);
    
    //max agent languages string length
    define("USER_AGENT_LANG",15);
    
    //max agent charset string length 
    define("USER_AGENT_CHARSET",15);
    
    //max user agent encoding string length
    define("USER_AGENT_ENCODING",15);
    
    //debug status
    define("DEBUG_ACTIVE",true);
    
    //ssl activation
    define('SSL_MODE', false);
    
    //global system charset
    define("ENCODING","UTF8");
    
    
    //rzeznik
    define("DSN","mysql://root:test@10.0.0.24:3306/test");
    
    //url suffix
    define("URL_SUFFIX","/");

    //base URL
    //andrew
    define("URL","/index.php/logowanie/");
    //old version:
    //define("URL",URL_SUFFIX."/index.php/index/");
				    
?>